package Employee;

public class BasePlusSalesEmployee extends SalesEmployee {
    int Basesalary;
    int Month;
    double Commission;

    public BasePlusSalesEmployee(String name, int month, int day, double salary, int basesalary, int month1, double commission) {
        super(name, month, day, salary);
        Basesalary = basesalary;
        Month = month1;
        Commission = commission;
    }

    public double getSalary(int month) {
        return this.Month==month?this.Basesalary+this.Commission+100:this.Basesalary+this.Commission;
    }
}

